home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00000000&
- BorderStyle = 3 'Fixed Double
- Caption = "Earth and Moon around the Sun"
- ClientHeight = 5235
- ClientLeft = 1095
- ClientTop = 1095
- ClientWidth = 7365
- Height = 5640
- Icon = SPINIT.FRX:0000
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 5235
- ScaleWidth = 7365
- Top = 750
- Width = 7485
- Begin CommandButton PlayButton
- Caption = "&Play"
- Height = 1095
- Left = 120
- TabIndex = 17
- Top = 2520
- Width = 1215
- End
- Begin PictureBox Picture2
- BackColor = &H00000000&
- Height = 4215
- Left = 1560
- ScaleHeight = 4185
- ScaleWidth = 4305
- TabIndex = 16
- Top = 240
- Width = 4335
- End
- Begin TEGOMM Tegomm1
- BorderStyle = 0 'None
- DeviceType = ""
- FileName = ""
- Height = 495
- Left = 120
- pcSpeed = 100
- pcTaskInterval = 0
- RecordMode = 0 'Insert
- Shareable = 0 'False
- Silent = 0 'False
- TabIndex = 15
- Tempo = 0
- Top = 720
- UpdateInterval = 0
- Width = 1215
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 13
- Left = 1560
- Picture = SPINIT.FRX:0302
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 14
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 12
- Left = 1560
- Picture = SPINIT.FRX:A55C
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 13
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 11
- Left = 1560
- Picture = SPINIT.FRX:147B6
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 12
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 10
- Left = 1560
- Picture = SPINIT.FRX:1EA10
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 11
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 9
- Left = 1560
- Picture = SPINIT.FRX:28C6A
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 10
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 8
- Left = 1560
- Picture = SPINIT.FRX:32EC4
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 9
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 7
- Left = 1560
- Picture = SPINIT.FRX:3D11E
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 8
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 6
- Left = 1560
- Picture = SPINIT.FRX:47378
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 7
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 5
- Left = 1560
- Picture = SPINIT.FRX:515D2
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 6
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 4
- Left = 1560
- Picture = SPINIT.FRX:5B82C
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 5
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 4230
- Index = 3
- Left = 1560
- Picture = SPINIT.FRX:65A86
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 4
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 2
- Left = 1560
- Picture = SPINIT.FRX:6FCE0
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 3
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 1
- Left = 1560
- Picture = SPINIT.FRX:79F3A
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 2
- Top = 240
- Width = 4380
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- Height = 4230
- Index = 0
- Left = 1560
- Picture = SPINIT.FRX:84194
- ScaleHeight = 4200
- ScaleWidth = 4350
- TabIndex = 1
- Top = 240
- Width = 4380
- End
- Begin TextBox Text1
- Alignment = 2 'Center
- BackColor = &H00000000&
- Enabled = 0 'False
- ForeColor = &H00FFFFFF&
- Height = 495
- Left = 2040
- MultiLine = -1 'True
- TabIndex = 0
- Top = 4680
- Width = 4335
- End
- Begin SpinButton Spin1
- Delay = 100
- Height = 495
- Left = 360
- Top = 4680
- Width = 1215
- End
- Option Explicit
- Dim gCounter%
- Sub Form_Load ()
- Dim i
- ' Initialize the counter
- gCounter = 1
- Text1.Text = "Rotating at " + Str(gCounter) + " years per cycle."
- ' Make all the pictures of Picture1() invisible.
- For i = 0 To 13 Step 1
- Picture1(i).Visible = False
- Next i
- ' Initialze the TegoMM multimedia control,
- TegoMM1.Visible = False
- TegoMM1.FileName = Left(App.Path, 2) + "\MVPROG\WAV\victo2m3.WAV"
- TegoMM1.DeviceType = "WaveAudio"
- TegoMM1.UpdateInterval = 260
- TegoMM1.Command = "Open"
- End Sub
- Sub PlayButton_Click ()
- If PlayButton.Caption = "Sto&p" Then
- PlayButton.Caption = "&Play"
- TegoMM1.Command = "Stop"
- Else
- PlayButton.Caption = "Sto&p"
- TegoMM1.Command = "Play"
- End If
- End Sub
- Sub Spin1_SpinDown ()
- If gCounter > 1 Then
- gCounter = gCounter - 1
- Text1.Text = "Rotating at " + Str(gCounter) + " years per cycle."
- TegoMM1.UpdateInterval = TegoMM1.UpdateInterval + 10
- Else
- Text1.Text = "Minimum speed reached!"
- End If
- End Sub
- Sub Spin1_SpinUp ()
- If gCounter < 25 Then
- gCounter = gCounter + 1
- Text1.Text = "Rotating at " + Str(gCounter) + " years per cycle."
- TegoMM1.UpdateInterval = TegoMM1.UpdateInterval - 10
- Else
- Text1.Text = "Maximum speed reached!"
- End If
- End Sub
- Sub Tegomm1_Done ()
- If TegoMM1.Position = TegoMM1.Length Then
- TegoMM1.Command = "Prev"
- TegoMM1.Command = "Play"
- End If
- End Sub
- Sub Tegomm1_StatusUpdate ()
- Static FrameNumber%
-
- If PlayButton.Caption = "Sto&p" Then
- FrameNumber = FrameNumber + 1
- If FrameNumber = 14 Then FrameNumber = 0
- Picture2.Picture = Picture1(FrameNumber).Picture
- End If
- End Sub
-